﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Commons.Entity;
using EF.Commons.Background.Entity;
namespace Common.Background.Service
{
    public interface IWebManageMenusSerivces
    {
        #region  后台登录管理及菜单显示
        /// <summary>
        /// 根据用户id及相关权限菜单id查询菜单信息
        /// </summary>
        /// <param name="menuid">用户id</param>
        /// <param name="menuid">菜单id</param>
        /// <returns>菜单实体</returns>
        List<WebManageMenus> GetManageMenus(int userid, int menuid);
        /// <summary>
        /// 根据菜单节点查找是否有子节点
        /// </summary>
        /// <param name="menuid"></param>
        /// <returns></returns>
        List<WebManageMenus> GetMenusChildNode(int userid, int menuid);
        /// <summary>
        /// 用户登录
        /// <returns></returns>
        VMessage ManageuaerLogin(WebManageUsers user);
        /// <summary>
        /// 修改密码
        /// </summary>
        /// <param name="user"></param>
        /// <returns></returns>
        Boolean UpdatePassword(WebManageUsers user, string password);
        #endregion
    }
}
